package com.example.howard.mytcpclient;

import android.app.Application;


/**
 * Created by jinqingxian on 16/5/14.
 */
public class MyApplication extends Application {
    public String IP="192.168.155.3";
    public String Port="1234";
    public ConnectService myConnectService;
    public  ClientList MyclientList;
    public ClientThread setClientThread(){
       ClientThread clientThread = new ClientThread(IP,Port);
        return clientThread;
    }
    //获得service指针
    public void getService (ConnectService connectService){
       this.myConnectService=connectService;
    }
    //获得ClientList
    public void getClientList (ClientList clientList){
        this.MyclientList=clientList;
    }
    //连接键键值
    public static boolean keyname=true;
    public ClientThread getClientThread() {
        return setClientThread() ;
    }

    @Override
    public void onCreate() {
        super.onCreate();


    }


}
